package hn.cch.cucumber.controller;

import hn.cch.cucumber.message.RequestMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// @RequestMapping(value = "")
@RestController
public class CucumberController {

    private final static Logger logger = LoggerFactory.getLogger(CucumberController.class);


    @PostMapping(value = "post")
    public String post(@RequestBody RequestMessage requestMessage) {
        logger.info("string:{}", requestMessage.getString());
        return "OK";

    }

}
